package com.leejxx.wemedia.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leejxx.model.wemedia.dtos.NewsAuthDto;
import com.leejxx.model.wemedia.pojos.WmNews;
import com.leejxx.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author LeeJx
 * @ClassName WmNewsDao
 * @Description TODO
 * @date 2021/2/25 12:29
 * @Version 1.0
 */
@Mapper
public interface WmNewsDao extends BaseMapper<WmNews> {
    List<WmNewsVo> findListAndPage(@Param("dto") NewsAuthDto dto);

    int findListCount(@Param("dto") NewsAuthDto dto);
}
